package io.renren.modules.shop.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.shop.dao.GoodsCartDao;
import io.renren.modules.shop.entity.GoodsCartEntity;
import io.renren.modules.shop.service.GoodsCartService;


@Service("goodsCartService")
public class GoodsCartServiceImpl extends ServiceImpl<GoodsCartDao, GoodsCartEntity> implements GoodsCartService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GoodsCartEntity> page = this.page(
                new Query<GoodsCartEntity>().getPage(params),
                new QueryWrapper<GoodsCartEntity>()
        );

        return new PageUtils(page);
    }

}